<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>菜品上新</title>
</head>
<body>
<%
//加载驱动       
Class.forName("org.mariadb.jdbc.Driver");

// 数据库连接信息
String dbURL = "jdbc:mariadb://10.220.140.102:3366/studb11";
String dbUser = "stua";
String dbPassword = "zHZUA65r";




// 建立连接
Connection conn = DriverManager.getConnection(dbURL, dbUser, dbPassword);
Statement stmt=conn.createStatement();
ResultSet rs = stmt. executeQuery("select*from dishes");
String dish_name = request.getParameter("name");
String restaurant_id = request.getParameter("restaurant_id");



%>
<form action="save.jsp" method="post">
        Enter a number: <input type="text" name="number" />
        <input type="submit" value="Submit" />
    </form>
</body>
</html>